// 轮播图函数
let index = 0;
function change_lunbo_pic(i){//点哪里走哪里
    let pic=document.getElementById("pic");//图片
    pic.src="http://qfq2r8jln.hn-bkt.clouddn.com/pic"+(i+1)+".jpg";
    let cs=document.getElementById("wyy-body-flag-mohu");//背景
    cs.style.background="url("+"http://qfq2r8jln.hn-bkt.clouddn.com/pic"+(i+1)+".jpg"+")";
    index=i;
}

let timer=self.setInterval("change_lunbo_pic1("+(index+1)+")",4000);
function change_lunbo_pic1(i){//左右走
    let pic=document.getElementById("pic");
     index=(index+i+5)%5;
    pic.src="http://qfq2r8jln.hn-bkt.clouddn.com/pic"+(index+1)+".jpg";
    // pic.src="http://qdnis36nt.bkt.clouddn.com/11.png";
   let cs=document.getElementById("wyy-body-flag-mohu");
    cs.style.background="url("+"http://qfq2r8jln.hn-bkt.clouddn.com/pic"+(index+1)+".jpg"+")";
}



